cap log close
clear
set more off
global projdir "Q:/dc1prhcmsas01/PU2/code"

*Identifies all new hires and wage changers from Apr 2015 to 2018
do "$projdir/8_new_hires.do"

*Plots the change in the distribution of weekly base pay for new hires from Jan 2016-Dec 2017 (Figures 6 and A5)
do "$projdir/9_plot_distribution_new_hires.do"

*Take each new hire and merge on their history of earnings pre and post hire.
do "$projdir/9_new_hires_history.do"

*Estimates diff-in-diff regressions comparing new hires at the bunching mass vs. hires above it
*Save the estimates
do "$projdir/10_reg_new_hires.do"

*Plot the estimates from the above regression (Figures 7 and A6)
do "$projdir/11_plot_did_hires.do"

*Summarize the diff-in-diff regression estimates for new hires (Table 2)
do "$projdir/11_table_did_hires.do"

*Plot the change in the distribution of weekly base pay for new hires over time, by firms above/below median turnover (Figure A8)
do "$projdir/9_plot_distribution_new_hires_het.do"

cap log close
